<template>
  <n-card :title="title" :segmented="{content: true}" size="small">
    <n-descriptions label-placement="left" bordered :column="column">
      <n-descriptions-item v-for="item in table" :label="item.label">
        {{item.value}}
      </n-descriptions-item>
    </n-descriptions>
  </n-card>
</template>
<script setup lang="ts">
import { tableInfo } from '.';

defineOptions({ name: 'infoTable' });
type Props = {
  title:string,
  column:number,
  table:tableInfo[]
}
defineProps<Props>()

</script>
<style scoped>
</style>
